/* 
 * File:   DescriptorReader.h
 * Author: max
 *
 * Created on April 3, 2013, 11:41 PM
 */

#ifndef DESCRIPTORREADER_H
#define	DESCRIPTORREADER_H

#include <iostream>
#include <vector>
#include <stdint.h>
#include "common_IndiceFueraRangoExcepcion.h"

using namespace std;

namespace TP {

class Descriptor {

public:
    
    Descriptor(char delimiter);
    
    virtual ~Descriptor();
    
    string& parse(const string &pString);
    
    string& data(uint32_t pIndex) throw (IndiceFueraRangoExcepcion&);
    
private:
    char _delimiter;
    vector<string> _params;
    
};

}

#endif	/* DESCRIPTORREADER_H */

